﻿<%@ Page Title="招聘管理" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true"
    CodeFile="Applictioncfg.aspx.cs" Inherits="Applictioncfg" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head"></asp:Content>
<asp:Content ID="MainContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<script type="text/javascript">
    function con() {
        if (confirm('确定删除吗？')) {
            return true;
        }
        else {
            return false;
        }
    }
</script>
<hr />
    <div style="text-align: left; width: 100%">
        <table>
            <tr>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="lbtn1_Click" CssClass="btn btn-success">搜索</asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowPaging="true"
            CssClass="table-hover table-bordered" 
            OnPageIndexChanging="GridView1_PageIndexChanging" Width="716px">
        <Columns>
            <asp:TemplateField HeaderText="单位号码">
            <ItemTemplate><asp:Label ID="Label1" runat="server" Text='<%# Bind("eno") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单位名称">
            <ItemTemplate><asp:Label ID="Label1" runat="server" Text='<%# Bind("ename") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="职位">
            <ItemTemplate><asp:Label ID="Label1" runat="server" Text='<%# Bind("position") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="地点">
            <ItemTemplate><asp:Label ID="Label1" runat="server" Text='<%# Bind("place") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
            <ItemTemplate>
            <a href='<%#String.Format("edita.aspx?ano={0}",Eval("ano")) %>' target="_self">
            详情
            </a>
            <asp:LinkButton ID="lbtndelete" runat="server" OnClientClick="return con();" CommandArgument='<%#Eval("ano") %>' OnClick="lbtndelete_Click">删除</asp:LinkButton>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
<hr />
</asp:Content>